﻿using Minecraft.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Minecraft.Config.Csv.CsvCls
{
	public partial class Mod_MapResource
	{
		/// <summary>
		/// 放置的坐标点
		/// </summary>
		public Point3 point3
		{
			get
			{
				var strs = Position.Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries).ToList().ConvertAll(m => int.Parse(m));
				return new Point3
				{
					x = strs[0],
					y = strs[1],
					z = strs[2]
				};
			}
		}
		/// <summary>
		/// 方向
		/// </summary>
		public int Face_Convert
		{
			get
			{
				return int.Parse(Face);
			}
		}
	}
}
